//
//  DXdjsView.h
//  抢购倒计时
//
//  Created by Elephant on 15/11/24.
//  Copyright © 2015年 RDX. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DXdjsDelegate <NSObject>

-(void)djsOngoing:(NSArray *)djsArr;

-(void)djsEnd:(NSArray *)djsArr;

@end

@interface DXdjs : NSObject

@property (strong , nonatomic) dispatch_source_t timer;

@property (assign , nonatomic) id<DXdjsDelegate> delegate;


-(instancetype)initWithCountdownTime:(NSString *)currentTime;

+(instancetype)dlsWithCountdownTime:(NSString *)currentTime;

-(void)countdownTime:(int)time;

@end
